package com.wn.ziroom.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Autowired
    private InterceptorConfig interceptorConfig;

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/houseServiceMain.html").setViewName("houseServiceMain");
        registry.addViewController("/showRoom.html").setViewName("room/showRoom.html");
        registry.addViewController("/").setViewName("index");
        registry.addViewController("/roomMap").setViewName("room/RoomMap.html");
    }


}
